include(GoogleTest)

add_executable(
    module_sec_storage_test
    src/sec_storage_core_test.cpp
    src/sec_storage_ipc_proxy_inner_test.cpp
    src/sec_storage_ipc_proxy_test.cpp
    src/sec_storage_ipc_stub_serialization_test.cpp
    src/sec_storage_ipc_stub_test.cpp
)

target_include_directories(module_sec_storage_test PRIVATE inc)
target_include_directories(module_sec_storage_test PRIVATE ${SE_BASE_SERVICES_DEFAULT_INC})
target_compile_options(module_sec_storage_test PRIVATE ${SE_BASE_SERVICES_DEFAULT_CC})
target_link_libraries(module_sec_storage_test PRIVATE se_base_services_fwk_obj)
target_link_libraries(module_sec_storage_test PRIVATE securec)
target_link_libraries(module_sec_storage_test PRIVATE se_base_services_defines)
target_link_libraries(module_sec_storage_test PRIVATE se_apdu_core_obj)
target_link_libraries(module_sec_storage_test PRIVATE logger_obj)
target_link_libraries(module_sec_storage_test PRIVATE se_modules_sec_storage_ipc_proxy_obj)
target_link_libraries(module_sec_storage_test PRIVATE se_modules_sec_storage_ipc_stub_obj)
target_link_libraries(module_sec_storage_test PRIVATE se_modules_common_ipc_stub_obj)
target_link_libraries(module_sec_storage_test PRIVATE parcel_obj)
target_link_libraries(module_sec_storage_test PRIVATE test_helpers_obj)
target_link_libraries(module_sec_storage_test PRIVATE se_base_test_mocks_obj)
target_link_libraries(module_sec_storage_test PRIVATE GTest::gmock_main)

gtest_discover_tests(module_sec_storage_test)
